#ifndef HYBRIDWEBPAGE_H
#define HYBRIDWEBPAGE_H

#include <QWebPage>
#include <QString>
#include <QFile>
#include <QTextStream>
#include "hybridfw_global.h"

class DLL_EXPORT HybridWebPage : public QWebPage
{
    Q_OBJECT

public:
	HybridWebPage(QObject *parent = 0);
    
    /**
     * Enable logging. Log is written to c:\data\\hag_console.log
     */
    void enableLogging();

protected:
    void javaScriptConsoleMessage (const QString& message, int lineNumber, const QString& sourceID);
    
private:
    QFile m_logFile;
};

#endif // HYBRIDWEBPAGE_H
